package com.linesum.code.design.decorator;

import java.math.BigDecimal;

/**
 * 咖啡
 * @author chenzf
 * @date 2017年8月1日
 */
public class Coffee {
	private BigDecimal cost;
	private BigDecimal totalPrice;

	public BigDecimal getCost() {
		this.cost = BigDecimal.ONE;
		return this.cost;
	}

	public void setCost(BigDecimal cost) {
		this.cost = cost;
	}

	public BigDecimal getTotalPrice() {
		return totalPrice;
	}

	public void setTotalPrice(BigDecimal totalPrice) {
		this.totalPrice = totalPrice;
	}

	public static void main(String[] args) {
		Coffee coffee = new Coffee();
		System.out.println("咖啡的原价:" + coffee.getCost());
		WhiteCoffee whiteCoffee = new WhiteCoffee();
		System.out.println("白咖啡的原价:" + whiteCoffee.getCost());
	}
}
